home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4242 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  3.3 KB

  1. Path: news.uiowa.edu!usenet
  2. From: larued@crpl.cedar-rapids.lib.ia.us
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C, C++, or both..??
  5. Date: 29 Jan 1996 07:16:30 GMT
  6. Organization: University of Iowa, Iowa City, IA, USA
  7. Distribution: world
  8. Message-ID: <4ehs8e$iok@flood.weeg.uiowa.edu>
  9. References: <4ehif2$ljf@news.iconn.net>
  10. Reply-To: larued@crpl.cedar-rapids.lib.ia.us
  11. NNTP-Posting-Host: ppp-118.cedar-rapids.lib.ia.us
  12. X-Newsreader: IBM NewsReader/2 v1.9d - NLS
  13.  
  14. In <4ehif2$ljf@news.iconn.net>, thecrow@iconn.net (The Crow) writes:
  15. >I am 17 years old, I have a rudimentary understanding of both C and C++ at this 
  16. >point.(I know Pascal well) I want to really delve into something at this point. 
  17. >My eventual goal is to either start my own software company, or work for one as 
  18. >a programmer. Should I concentrate only on C++ for now, only C for now, or 
  19. >both? Or does it not really matter? I have read up on C++ and I really don't 
  20. >see much benefit from it. People have kept applications in order (mostly) for 
  21. >years without 'object oriented' programming...and C seems to be faster and much 
  22. >less of a pain.
  23. >
  24. >I have a few programs in mind were object orientation would be a more natural 
  25. >way of going about the program (evolution similuations) but a lot of programs 
  26. >don't really benefit from it at all.  The biggest improvements in C++ that I 
  27. >can see at this point are COUT/CIN, the comments, and NEW and DELETE...the rest 
  28. >just seems to make me type and think more.  Is it because I am just not used to 
  29. >the idea yet or is it really more complicated? The thing I hate most is the way 
  30. >member functions have to be outside of their class, totally counter intuitive 
  31. >and makes things very hard to follow. 
  32. >-- 
  33. >The Crow - thecrow@iconn.net
  34. >"It can't rain all the time"
  35. >-Kryptology
  36. >
  37.  
  38.   It sounds like you have a grasp of some of the differences of C and C++.
  39. Most, if not all, C programs will compile under a C++ compiler.  There are
  40. a few minor exceptions due to new reserved words and such.
  41.  
  42.   Why not start your projects under C with some of the concepts of C++ that
  43. you know.  When you find true needs to use C++ concepts the ability will be
  44. there.  Not all code done in C++ need be made of perfect classes.  In this
  45. way your C and C++ skills can grow.  You will find out which techniques are
  46. best for you as your skills evolve.
  47.  
  48.   I have always built code in ways similar to OO methods.  I made extensive 
  49. use of copied code and structures with accesor functions.  About a year ago
  50. I started using C++ for making tools for my own use.  Now I am able to add
  51. ideas from others (classes) and build new concepts of my own.  True, this
  52. does cause considerable forethought before coding.  It may even dictate a
  53. small rewrite once te true nature of the project is discovered.  The results
  54. however can be very useful.  Classes eventualy have a habit of becoming
  55. tools that get reused very easily.  If done right they can also provide a
  56. simple way to restructure programs.  How often does a program, after it has
  57. been built, does the user want a small change, that actually becomes a large
  58. fundamental change.  Sometimes the concepts are more easily changed when
  59. the ideas have already been packaged by the concept of classes instead of
  60. spread throughout a project.
  61.  
  62.   It doesn't hurt to explore and determine the strengths and weaknesses of 
  63. C++.
  64.  
  65.   Hope this helps,
  66.  
  67.     Dave LaRue
  68.  
  69.